<?php
if (isset($this->data['Supplier'])) {
    $supplier_id = $this->data['Supplier']['id'];
    $supplier_name = $this->data['Supplier']['name'];
} else {

}

echo $html->link('View as Vendor',
    array('controller' => 'its_admins', 'action' => 'view_as_supplier_user', $supplier_id),
    array('id' => 'viewAsSupplier', 'class' => 'button viewAsSupplier', 'title' => 'View as Vendor user'),
    null, false);


?>
<?php echo $this->element('javascript/confirm_link', array(
        'id' => 'viewAsSupplier', 'message' => "Do you want to view as \"{$supplier_name}\" user?"));?>
